import request from '@/utils/request'

// 查询美团成本卡主列表
export function listFoodcostcard(query) {
  return request({
    url: '/mt/foodcostcard/list',
    method: 'get',
    params: query
  })
}

// 查询美团成本卡主详细
export function getFoodcostcard(id) {
  return request({
    url: '/mt/foodcostcard/' + id,
    method: 'get'
  })
}

// 新增美团成本卡主
export function addFoodcostcard(data) {
  return request({
    url: '/mt/foodcostcard',
    method: 'post',
    data: data
  })
}

// 修改美团成本卡主
export function updateFoodcostcard(data) {
  return request({
    url: '/mt/foodcostcard',
    method: 'put',
    data: data
  })
}

// 删除美团成本卡主
export function delFoodcostcard(id) {
  return request({
    url: '/mt/foodcostcard/' + id,
    method: 'delete'
  })
}

// 导出美团成本卡主
export function exportFoodcostcard(query) {
  return request({
    url: '/mt/foodcostcard/export',
    method: 'get',
    params: query
  })
}